package cn.edu.wynu.oop.polymorphic.pet;

public class PetStore {
    /*
    哈士奇洗澡服务
     */
    public static void shower(Pet pet){
        System.out.println("为"+pet.type + "品种的"+pet.name+"洗澡");
    }
    /*
     * 宠物进食照看服务
     */
    public static void feed(Pet pet){
        System.out.println("为"+pet.type + "品种的"+pet.name+"寻找合适食物");
        pet.eat();
    }

    public static void main(String[] args) {
        Pet pet = new Husky();
        PetStore.shower(pet);
        PetStore.feed(pet);

        pet = new GoldenRetriever();
        PetStore.shower(pet);
        PetStore.feed(pet);
    }
}
